package start.service;

import com.alicp.jetcache.anno.CacheType;
import com.alicp.jetcache.anno.Cached;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import start.entity.UserDto;


public interface IJtcUserService {


    @Cached(name="userDto.", expire = 2, cacheType = CacheType.REMOTE)
    public UserDto getUserById(Long id);


}
